<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jquery-3.4.1.min.js"></script>
		<script>
		$(function(){
			//跳转之前确认一下
			$("a").click(function(){
				if(window.confirm("真的要走?"))
					return true;
				return false;
			});
			
		});
		</script>
	</head>
	<body>
		<a href="https://www.oschina.net">oschina</a>
	</body>
</html>
